import { axiosSdk } from '@/utils/axiosSdk'
import { socket } from '@/config'

export function unreadList(params) { // 获取未读消息列表
	return axiosSdk(
		'post',
		`/${socket}/api/v1/ws/queryUnReadPage`,
		params
	)
}

export function unreadNum(params) { // 获取未读消息条数
	return axiosSdk(
		'post',
		`/${socket}/api/v1/ws/unRead`,
		params
	)
}

export function unreaUpdate(params) { // 更新消息状态
	return axiosSdk(
		'post',
		`/${socket}/api/v1/ws/updateMsgState/${params.msgId}`
	)
}

